//
//  touchEventVc.m
//  iOS_Lab
//
//  Created by Chenxuhun on 17/4/13.
//  Copyright © 2017年 Chenxuhun. All rights reserved.
//

#import "touchEventVc.h"
#import "WSView.h"

@interface touchEventVc ()

@end

@implementation touchEventVc

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
    // 创建自定义view
    WSView *touchView = [[WSView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    // 背景颜色
    touchView.backgroundColor = [UIColor redColor];
    // 添加到父控件
    [self.view addSubview:touchView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    NSLog(@"摸我干啥a！");
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
